#!/usr/bin/env bash

curl -L https://git.io/get_helm.sh | bash -s -- -v v3.6.0

export PATH=$PATH:/home/ubuntu/.local/bin
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
echo export KUBECONFIG=/etc/rancher/k3s/k3s.yaml >> ~/.profile

helm repo add jenkins https://charts.jenkins.io

helm repo update

helm upgrade --install jenkins jenkins/jenkins -n jenkins --create-namespace -f /tmp/jenkins-values.yaml
